* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}


/* Result Search Form Design */
.result-info {
    background: linear-gradient(175deg, #000080 50%, #000030 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.search-container {
    background-color: #f1f3f9;
    padding: 30px 50px 0 50px;
    width: 100%;
    max-width: 850px;
    border: 2px solid #28a745;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    text-align: center;
    height: auto;
}

.search-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.search-logo img {
    width: 90px;
}

.search-body h1 {
    font-size: 1.8rem;
    color: #000080;
    margin-bottom: 5px;
    font-weight: 800;
}

.search-body p {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    text-align: center;
}


h2 {
    font-size: 24px;
    font-weight: 900;
    color: #333;
    margin-bottom: 10px;
}

.instruction {
    font-size: 14px;
    margin-bottom: 40px;
    color: #666;
    font-style: italic;
}

.instruction a {
    color: #0000EE;
    font-weight: bold;
    transition: all 0.8s ease;
}

.form-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 25px;
    text-align: left;
}

label {
    flex: 1;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    padding-right: 20px;
}

select,
input {
    flex: 2;
    padding: 12px;
    border: 1.5px solid #28a745;
    border-radius: 10px;
    font-size: 15px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

input:focus,
select:focus {
    border-color: #000080;
    box-shadow: 0 0 10px rgba(0, 0, 128, 0.15);
    outline: none;
}

.btn-view {
    background-color: #000080;
    color: white;
    padding: 9px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    margin: 10px 0 20px 0;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 128, 0.3);
}

.btn-view:hover {
    background-color: #28a745;
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.4);
}

.footer-para {
    padding: 10px;
    background-color: #000020;
    color: white;
    font-size: 13px;
    margin: 0 -50px;
    border-radius: 0 0 14px 14px;
}

.footer-para p a {
    color: #28a745;
    margin: 0 5px;
}



/* Responsive Result */
@media (max-width: 400px) {
    .search-body h1 {
        font-size: 1.1rem;
    }

    .instruction {
        font-size: 12px;
        margin-bottom: 25px;
    }

    .search-container {
        padding: 15px 15px 0 15px;
    }

    .footer-para {
        margin: 0 -15px;
    }
}

@media (max-width: 768px) {
    .result-info {
        padding: 15px;
        align-items: flex-start;
        padding-top: 30px;
    }

    .search-container {
        padding: 20px 20px 0 20px;
        border-radius: 15px;
    }

    .search-logo {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }

    .search-logo img {
        width: 80px;
    }

    .search-body h1 {
        font-size: 1.3rem;
        text-align: center;
    }

    .search-body p {
        font-size: 12px;
    }

    h2 {
        font-size: 22px;
        margin-top: 10px;
    }

    .form-group {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 18px;
    }

    label {
        width: 100%;
        padding-right: 0;
        margin-bottom: 8px;
        font-size: 14px;
    }

    select,
    input {
        width: 100%;
        flex: none;
        font-size: 14px;
        padding: 12px;
    }

    .btn-view {
        width: 100%;
        font-size: 16px;
        margin-top: 20px;
    }

    .footer-para {
        margin: 0 -20px;
        font-size: 11px;
        padding: 15px 10px;
    }
}

@media (max-width: 992px) {
    .search-container {
        max-width: 90%;
        padding: 30px 30px 0 30px;
    }

    .search-body h1 {
        font-size: 1.5rem;
    }

    .footer-para {
        margin: 0 -30px;
    }
}


/* JavaScript HTML Design */
.full-result-sheet {
    max-width: 800px;
    margin: 20px auto;
    padding: 40px;
    border: 1px solid #ddd;
    font-family: Arial, sans-serif;
    position: relative;
}

.center-image {
    width: 200px;
    position: absolute;
    top: calc(50% - 100px);
    left: calc(50% - 100px);
    filter: opacity(10%);
    z-index: -10;
}

.result-header {
    text-align: center;
    margin-bottom: 20px;
}

.title-bar {
    border: 1px solid #000;
    border-radius: 20px;
    padding: 5px 20px;
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
}

.info-table,
.subject-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.info-table td {
    padding: 4px;
    font-size: 14px;
}

.info-table td:first-child {
    width: 30%;
}

.subject-table th,
.subject-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
    font-size: 13px;
}

.subject-table th {
    background-color: #f9f9f9;
}

.result-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    font-size: 12px;
}

.signature {
    text-align: center;
    margin-top: 10px;
}

.fail {
    color: red;
    font-weight: bold;
}

.pass {
    color: green;
    font-weight: bold;
}

.center {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn-back {
    background-color: lightskyblue;
    border: none;
    outline: none;
    padding: 9px 40px;
    color: white;
    cursor: pointer;
    transition: all 0.4s ease;
}

.btn-back:hover {
    background-color: rgb(108, 178, 222);
}

@media (max-width: 768px) {
    .full-result-sheet {
        padding: 15px;
        margin: 10px;
    }

    .result-header h2 {
        font-size: 18px;
    }

    .info-table td {
        margin-left: 30px;
        text-align: left;
    }

    .info-table td:nth-child(2) {
        display: none;
    }

    .subject-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .result-footer {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .signature {
        margin-top: 20px;
    }
}

/* Result Search Form Design Ends*/

/* Semester Result Table */
.transcript-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    border: 1px solid #000;
}

.transcript-table th, .transcript-table td {
    border: 1px solid #000;
    padding: 4px 8px;
    font-size: 13px;
    text-align: center;
}

.transcript-table th {
    background-color: #f9f9f9;
    font-weight: bold;
}

.academic-transcript-title {
    display: inline-block;
    border: 1px solid #000;
    padding: 2px 20px;
    border-radius: 15px;
    margin: 10px 0;
    font-weight: bold;
}

.semester-header {
    text-align: left;
    background-color: #fff;
}

.semester-header td {
    text-align: center;
    font-size: 0.8rem;
    padding-top: 8px;
}

.text-left {
    text-align: left !important;
}

.student-info-grid {
    display: flex;
    justify-content: space-between;
    margin: 20px 0 10px 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    padding: 10px 80px 15px 30px;
}

.background{
    position: absolute;
    filter: opacity(20%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .full-result-sheet {
        padding: 15px;
        overflow-x: hidden;
    }

    .result-header h2 {
        font-size: 1rem;
    }

    .student-info-grid {
        flex-direction: column;
        padding: 10px 5px;
        text-align: left;
    }

    .student-info-grid .text-right {
        text-align: left;
        margin-top: 5px;
    }

    .result-header p{
        font-size: 0.9rem;
    }
  
    .academic-transcript-title{
        font-size: 0.9rem;
    }

    .student-info-grid span{
        font-size: 0.8rem;
    }

    .transcript-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .transcript-table {
        min-width: 600px; 
    }

    .transcript-table th, .transcript-table td {
        font-size: 11px; 
        padding: 3px 5px;
    }

    .background {
        width: 60%;
        filter: opacity(10%);
    }

    .result-type-label {
        font-size: 16px;
        top: 10px;
        left: 5px;
        transform: rotate(-25deg);
    }
}
